//
// maths.hpp for  in /home/goldbe_y//cpp/Maths/204param
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Tue Mar 29 18:42:35 2011 yoni goldberg
// Last update Fri Apr 29 18:14:25 2011 leo faucon
//

#ifndef __MATHS_H__
# define __MATHS_H__

#include <iomanip>
#include <iostream>
#include <complex>

#include "SDL.hpp"
#include "SDL_graph.hpp"

class Maths
{
public:
  Maths(double a, double b);
  Maths(double a, double b, double c, double);
  ~Maths();

  void			loi();
  void			courbe(SDL_opt * win);

protected:

  double		calc(double);
  double		calc2(double);


  double		simpson(double);
  double		somme(bool);

  void			axes_courbe(SDL_opt * win, SDL_graph * graph, double i, int grad);

  double		min;
  int			n;
  double		borne_a;
  double		borne_b;
  double		a;
  double		b;
  double		c;
  double		d;
  double		h;
  double		temp[5];
  double		resultat;
  bool			option;
};


#endif /* !__MATHS_H__ */
